package com.wsd.service;


import com.wsd.domain.LoanDetails;
import com.wsd.domain.LoanInformation;


import java.util.List;

/**
 * @author wangyuyang
 */

public interface LoanInformationService {

    /**
     * 根据客户编号查找贷款信息
     * @param customerId
     * @return
     */
    List<LoanInformation> selectLoanByCustomerId(String customerId);

    /**
     * 根据贷款编号获取贷款详情
     * 通过LoanInformation类信息计算贷款细节信息
     * @param loanId
     * @return LoanDetails 用于在贷款详情页面的信息展示
     * by WangYuCan
     */
    LoanDetails selectLoanDetailsByLoanId(long loanId);
}
